(function () {
  // 步骤3：创建echarts实例
  let myChart = echarts.init(document.querySelector(".box34"));

  let option = {
    // 加水印
    graphic: [
      {
        type: "text",
        top: "33%",
        left: "37%",
        style: {
          text: "162",
          fill: "#fff",
          color: "#fff",
          fontSize: 20,
          fontWeight: "bold",
        },
      },
      {
        type: "text",
        top: "52%",
        left: "30%",
        style: {
          text: "占比75%",
          fill: "#A6A8B6",
          fontSize: 12,
          fontWeight: "normal",
        },
      },
    ],
    series: [
      {
        type: "pie",
        //   radius: '50%',
        radius: [35, 40],
        label: {
          show: false,
        },
        startAngle: 200,
        data: [
          {
            value: 10,
            itemStyle: {
              color: "#333843",
            },
          },
          {
            value: 80,
            itemStyle: {
              color: "#6abaf2",
            },
          },
        ],
      },
    ],
  };

  myChart.setOption(option);
})();
